#ifndef MAIN_H
#define MAIN_H

#ifdef __cplusplus
extern "C" {
#endif
    
#include "driver/ledc.h"
#include "esp_adc/adc_oneshot.h"

#define ATOMIZER1_GPIO         7
#define ATOMIZER1_LEDC_TIMER   LEDC_TIMER_0
#define ATOMIZER1_LEDC_CHANNEL LEDC_CHANNEL_0
#define ATOMIZER1_LEDC_FREQ_HZ 5000
#define ATOMIZER1_DUTY_RATE    0.3

#define MOTOR1_GPIO           8
#define MOTOR2_GPIO           10
#define MOTOR3_GPIO           18
#define MOTOR1_LEDC_TIMER     LEDC_TIMER_1
#define MOTOR1_LEDC_CHANNEL   LEDC_CHANNEL_1
#define MOTOR1_LEDC_DUTY_RATE 0.3
#define MOTOR2_LEDC_TIMER     LEDC_TIMER_2
#define MOTOR2_LEDC_CHANNEL   LEDC_CHANNEL_2
#define MOTOR2_LEDC_DUTY_RATE 0.3
#define MOTOR3_LEDC_TIMER     LEDC_TIMER_3
#define MOTOR3_LEDC_CHANNEL   LEDC_CHANNEL_3
#define MOTOR3_LEDC_DUTY_RATE 0.3

#define BATVOL_PULLUP_RES_VAL   390000
#define BATVOL_PULLDOWN_RES_VAL 100000
#define BATVOL_ADC_UNIT         ADC_UNIT_1
#define BATVOL_ADC_CHANNEL      ADC_CHANNEL_2
#define BATVOL_ADC_ATTEN        ADC_ATTEN_DB_0
#define BATVOL_ADC_BIT_WIDTH    ADC_BITWIDTH_12

#define LED_GPIO 5

#ifdef __cplusplus
}
#endif

#endif